package com.wn.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * (Emp)实体类
 *
 * @author makejava
 * @since 2020-10-26 09:29:18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Emp implements Serializable {
    private static final long serialVersionUID = 304848187453264566L;

    private String id;

    private String empno;

    @NotEmpty(message = "员工姓名不能为空")
    @Size(min = 2,max = 10,message = "长度在2-10个字符")
    private String empname;

    private String empsex;

    @NotEmpty(message = "电话不能为空")
    @Size(min = 11,max = 11,message = "长度在11位数字")
    private String empphone;

    private String empidcard;

    private String empcardno;

//    @NotEmpty(message = "员工账号不能为空")
//    @Size(min = 2,max = 10,message = "长度在2-10个字符")
    private String empaccount;

//    @NotEmpty(message = "员工账号不能为空")
//    @Size(min = 6,max = 12,message = "长度在6-12个字符")
    private String emppassword;

    private String empavatar;

    private Integer roleid;

    private String roleSign;
    /**
     * 0在职1离职2已删除
     */
    private Integer empstatus;

    private Date createtime;

    private String createuserid;

    private Date updatetime;

    private String updateuserid;
    /**
     * 0正常1删除
     */
    private Integer isdeleted;



}
